package com.ptswitch.material.components.row;

import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.annotations.Parameter;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.annotations.SetupRender;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.hxzon.tapestry5.components.base.CustomGridEx;

import com.ptswitch.material.model.material.BomMaterial;

public class BomMaterialRow extends CustomGridEx {

    @Parameter(value = "false")
    @Property
    private boolean drawMaterialLink;

    @Parameter(value = "false")
    @Property
    private boolean drawBomLink;

    @Parameter(value = "false")
    @Property
    private boolean drawBom;

    @Property
    private BomMaterial bomMaterial;

    @Inject
    private ComponentResources componentResource;

    @SetupRender
    void init() {
//		if (drawBom==false) {
//			drawBomLink=false;
//		}
    }

}
